package com.grass.finding.common;

public enum ErrorCode {

    SYSTEM_ERROR(50000, "系统异常", ""),
    INVALID_PARAMETER(50002, "无效参数", ""),
    NOT_LOGIN(50001, "没有登录", "");

    private int code;
    private String message;
    private String description;

    ErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
